from django.db import models

# Create your models here.
class User(models.Model):
    id = models.IntegerField(primary_key=True)
    username = models.CharField(max_length=30)
    email = models.CharField(max_length=30)

class Article(models.Model):
    id = models.IntegerField(primary_key=True)
    title = models.CharField(max_length=120)
    content = models.TextField()
    publish_date = models.DateTimeField()
    user = models.ForeignKey(User, on_delete=models.CASCADE)